package src.string;

import java.util.Scanner;

public class kama55 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.nextLine());  //因为输入的内容被看作字符串，所以要把“1”转为数字1
        String str = sc.nextLine();               //用Integer.parseInt(String s)方法转化为数值

        char[] charArray = str.toCharArray();
        reverseString(charArray, 0, charArray.length - 1);
        reverseString(charArray, 0, n - 1);
        reverseString(charArray, n, charArray.length - 1);
        System.out.println(charArray);
    }

    //翻转字符串函数
    public static void reverseString(char[] s, int i, int j) {
        while (i < j) {
            char temp = s[i];
            s[i] = s[j];
            s[j] = temp;
            i++;
            j--;
        }

    }
}
